package combat.coffeeshop.decorators;

import combat.coffeeshop.coffee.Coffee;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-03
 */
public abstract class CoffeeDecorator implements Coffee {

    protected Coffee decoratedCoffee;

    public CoffeeDecorator(Coffee decoratedCoffee) {
        this.decoratedCoffee = decoratedCoffee;
    }

    @Override
    public double cost() {
        return decoratedCoffee.cost();
    }

    @Override
    public String description() {
        return decoratedCoffee.description();
    }
}
